<?php
Class SearchPro Extends CI_Model
{
    private $_table = "mock_products";
    function __construct()
    {
        parent::__construct();
    }

    function search($keyword)
    {
        $this->db->like("product_name",$keyword);
        return $this->db->get($this->_table)->result_array();
    }
}